/**
 * @Description: 获取banner
 * @author 焦政
 * @date 2019/4/5
 */
module.exports = app => {
    return class BannerController extends app.Controller {
        /**
         * @Description: 获取banner列表
         * @author 焦政
         * @date 2019/4/5
         */
        async getBannerList() {
            const {ctx} = this;
            const bannerList = await ctx.service.mysql.mapper.db('banner/banner', 'selectbanner', {});
            ctx.body = {
                code: 0,
                bannerList,
            }
        }
    };
};
